package com.bawei.yangzongcai___day2.MVPActivity;

import com.bawei.mvp.Presenter.BoosPresenter;

import java.util.List;

/**
 * create by ertu
 * create on 2021/7/26
 * description
 */
public class FoodPreter  extends BoosPresenter<FoodContract.foodmodel,FoodContract.foodview> {

    public FoodPreter(FoodContract.foodview viwes, FoodContract.foodmodel models) {
        super(viwes, models);
    }

    //Presenter 查看Model数据不规范，处理完成后交给view展示
    public void getada(){
        models.getdate(new Foodcallback() {
            @Override
            public void success(List<JavaMVP.DataBean> dataBeanList) {
                viwes.initadapter(dataBeanList);
            }

            @Override
            public void file() {

            }
        });
    }
}
